var C = Date.now || function () { return +new Date };
function randomString(len)
{
var string_length = len; var a; a = Array(string_length);
for (c = 0; string_length > c; c++)
{
for (var d = C(), f = 0; f < d % 23; f++)
a[c] = Math.random(); a[c] = Math.floor(64 * Math.random())
}
c = []; 
for (d = 0; d < a.length; d++)
c.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_" [a[d] & 63]);
return c.join("")
}
function work()
{
var docids = ['y6HLkdj_Nm0','y6HLkdj_Nm0','y6HLkdj_Nm0'];
var videlens = ['240','240','240']; 
var crids= ['FR','US','GB'];
var plidsS=['AATX','ABTX','AAXT'];
for(var x=0;x<docids.length;x++)
{
for(var y=0;y<crids.length;y++)
{
var docid = docids[x];
var videlen = videlens[x];
var urlsone = '';
var urlstwo = '';
for (var i = 0; i < 5;i++)
{
var cr=crids[y];
var pl=plidsS[y];
var plid=randomString(12);
var vid = randomString(32);
var cpn = randomString(16);
var rt = Math.floor(Math.random() * 11).toFixed(2);
var rt2 = parseInt(rt, 10) + parseInt(videlen, 10);
var rt2 = rt2.toFixed(2);
var urlsone = urlsone + '<script type="text/javascript" src="http://s.youtube.com/s?html5=1&ns=yt&el=detailpage&hl=en_'+cr+'&cr='+cr+'&cpn=' + cpn + '&docid=' + docid + '&referrer&plid='+pl+plid +'&fmt=43&fs=0&screenw=1680&screenh=1050&w=426&h=230&vw=426&vh=230&playerw=640&playerh=390&vid=' + vid + 'C&rt=' + rt + '&mos=0&volume=100&eurl=http%3A%2F%2Fwww.google.com%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Deasy%2B2%2Bearn%26esrc%3Ds%26source%3Dweb%26cd%3D1%26cad%3Drja%26ved%3D0CC8QFjAA%26url%3Dhttp%253A%252F%252Fwww.youtube.com%252Fwatch%3Fv%3Dy6HLkdj_Nm0%26ei%3DHlyPUMO3FMSPrge8y4DwAQ%26usg%3DAFQjCNF0B-3uIhljuVMIffyUOcYlhuyFRQ&playback=1&len=' + videlen + '&fexp=925005%2C910019%2C911305%2C916613%2C920704%2C912806%2C902000%2C919512%2C929901%2C913605%2C906938%2C931202%2C931401%2C908529%2C930803%2C920201%2C929602%2C930101%2C930603%2C926403%2C900824&st=0.28&et=0.28"><\/script>'; var urlstwo = urlstwo + '<script type="text/javascript" src="http://s.youtube.com/s?html5=1&ns=yt&el=detailpage&hl=en_'+cr+'&cr='+cr+'&cpn=' + cpn + '&docid=' + docid + '&referrer&plid='+pl+plid+'&fmt=43&fs=0&screenw=1680&screenh=1050&w=426&h=230&vw=426&vh=230&playerw=640&playerh=390&vid=' + vid + 'C&rt=' + rt2 + '&mos=0&volume=100&eurl=http%3A%2F%2Fwww.google.com%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Deasy%2B2%2Bearn%26esrc%3Ds%26source%3Dweb%26cd%3D1%26cad%3Drja%26ved%3D0CC8QFjAA%26url%3Dhttp%253A%252F%252Fwww.youtube.com%252Fwatch%3Fv%3Dy6HLkdj_Nm0%26ei%3DHlyPUMO3FMSPrge8y4DwAQ%26usg%3DAFQjCNF0B-3uIhljuVMIffyUOcYlhuyFRQ&playback=1&vtmp=1&len=' + videlen + '&fexp=925005%2C910019%2C911305%2C916613%2C920704%2C912806%2C902000%2C919512%2C929901%2C913605%2C906938%2C931202%2C931401%2C908529%2C930803%2C920201%2C929602%2C930101%2C930603%2C926403%2C900824&st=0.28&et=' + videlen + '"><\/script>';
}
document.write(urlsone)
document.write(urlstwo)
}
}
}